import Vue from 'vue'
const axios = Vue.prototype.$axios
const getProduct = (data) => {
  return axios.get('/public/productList', data)
}
const getProDetail = (data) => {
  return axios.get('/public/proDetail', data)
}
const searchProList = (data) => {
  return axios.get('/public/searchProList', data)
}
const newAddCart = (data) => {
  return axios.post('/user/newAddCart', data)
}
const getCart = (data) => {
  return axios.post('/user/getCart', data)
}
const deleteCart = (data) => {
  return axios.post('/user/deleteCart', data)
}

export {
  getProduct,
  getProDetail,
  searchProList,
  newAddCart,
  getCart,
  deleteCart
}